home *** CD-ROM | disk | FTP | other *** search
- UPDATE.EXE version 1.1
-
- SYNTAX: UPDATE.EXE <Source Path> <Target Path> <File Spec>
-
- The UPDATE Utility will search the <Source Path> file for
- files matching the <File Spec> and then search the <Target Path>
- for exact matches.
-
- If a file found in the <Source Path> is not found in the
- <Target Path> then the file is ADDED to the <Target Path>.
-
- If a file is found in the <Source Path> and in the <Target Path>
- and the file found in the <Source Path> is newer, then the file
- is UPDATED (overwritten) in the <Target Path>.
-
- EXAMPLE: UPDATE.EXE c:\adf_file\ a:\ *.adf
-
- The example above will find for any files that match the
- wildcard "c:\adf_file\*.adf" and if they are not found on
- the "a:\" directory the will be copied there. If a file with
- the same name does exist on the "a:\" directory the file dates
- are compared and the file is copied only if newer that that on
- the "a:\" directory.
-
- Why I Needed This Program:
-
- I regularly service IBM PS/2 computers which require a reference
- disk to run the system configuration program. This disk contains
- configuration programs and data files. As with any software, IBM and
- other adapter card manufacturers regularly revise these data files
- and distribute them. When I service a machine I want only the most
- most current setup files (*.ADF) on my reference disk.
-
- I needed to copy new files not currently on the reference disk and
- overwrite older files on the reference disk with newer files - but,
- I DON'T WANT TO OVERWRITE A NEW FILE WITH AN OLD ONE!!! So updating
- a reference disk was a tedious manual operation.
-
- The external DOS command REPLACE.EXE is similar. It has a the "/a"
- switch to add new files and also the "/u" switch to replace older
- files but they are mutually exclusive. A batch file with two passes
- could get the job done but I think you will agree that UPDATE.EXE
- is more user friendly.
-
- I originally wrote the UPDATE.EXE for this specific task. Then I
- started getting comments about how useful this would be for other
- tasks. I rewrote the program to accept the <SOURCE>, <TARGET> and
- <FILESPEC> arguments to make it more flexible.
-
-
- Historical Stuff:
-
- Version 1.0 Written 01/25/93
-
- Version 1.1 Written 07/07/93 Added escape capability to allow
- pausing and/or aborting an update operation. Added
- a pause when a file cannot be copied for some
- reason. User may then continue or abort.
-
-
- Legal Stuff:
-
- This program is released to the public domain (freeware) by me, the
- author. It is provided "AS IS" and the author assumes no liability
- for your use of this program.
-
- You may distribute this program provided you do not charge any
- fees and you distribute this text file with the program.
-
-
- Technical Stuff:
-
- I have tested UPDATE.EXE sucessfully in the following environments:
-
- MS DOS 4.01, 5.0
- PC DOS 4.0, 5.0
- Windows 3.X (DOS session)
- OS/2 1.3, 2.0 (DOS session)
-
- The program was written and compiled in Microsoft QuickBASIC version
- 4.5 with additional library routines provided with the book "Basic
- Techniques And Utilities" by Ethan Winer, Ziff-Davis Press. I
- highly recommend this book to anyone who desires to use QuickBASIC
- for more than the NIBBLES.BAS program shipped with DOS 5. If you
- have a basic compiler and would like the source code then send me a
- message on Compuserve I will gladly send you the 350 line basic
- source code for UPDATE.EXE.
-
- John Lindinger, Compuserve ID# 71072,1402
-
-